package library;

public class TestApp
{

	/**
	 * @param args
	 * @throws LendingException 
	 */
	public static void main(String[] args) throws LendingException
	{
		Book[] books = { new Book(1, "12345678", "Buch 1", "Author 1"),
				new Book(2, "45476524q", "Buch 2", "Author 2"),
				new Book(3, "fc32tqc4", "Buch 3", "Author 3"),
				new Book(4, "zthbq5vgw", "Buch 4", "Author 4"),
				new Book(5, "43crfvg5v", "Buch 5", "Author 5"), };
		Student[] students = { new Student(1, "Student 1"),
				new Student(2, "Student 2"), new Student(3, "Student 3"), };
		
		
		LibraryModel model = new LibraryModel(books, students);
		
		model.lendBook(books[1], students[1]);
		model.lendBook(books[0], students[1]);
		
		for (Lending l : model.getLendings())
			System.out.println(l);

	}

}
